<extend name="Base:base" />
<block name="title">{$title}</block>
<block name="content">
    <form action="{:U('Admin/Article/editDo')}" method="post">
        <table class="table">
            <tr>
                <th>文章类型</th>
                <td>{$article.article_type.name}</td>
                <th>文章标题</th>
                <td> <input style="width: 300px" type="text" name="title"  value="{$article.title}" /></td>
                <th>是否显示</th>
                <td><input type="radio" name="is_active" value="1" <if condition="$article['is_active'] eq 1"> checked="checked" </if>>显示
                    <input type="radio" name="is_active" value="0" <if condition="$article['is_active'] eq 0"> checked="checked" </if>>不显示</td>
            </tr> 
            <tr>
                <th colspan="6">文章概要</th>
            </tr>
            <tr>
                <td colspan="6"><textarea name="summary" id="content">{$article.summary}</textarea></td>
            </tr>
            <tr>
                <th colspan="6">文章内容</th>
            </tr>
        </table>
        <!-- 加载编辑器的容器 -->
            <script id="container" name="content" type="text/plain"></script>
            <!-- 配置文件 -->
            <script type="text/javascript" src="__ROOT__/ueditor/ueditor.config.js"></script>
            <!-- 编辑器源码文件 -->
            <script type="text/javascript" src="__ROOT__/ueditor/ueditor.all.js"></script>
            <!-- 实例化编辑器 -->
            <script type="text/javascript">
                UE.getEditor('container', {
                    "initialFrameWidth": "80%",
                    "initialFrameHeight": 250,
                });
            </script>
        <input type="hidden" name="id" value="{$article.id}">
        <input type="submit" value="保存修改"/>
    </form>
</block>